package grg.learn.compose.wanandroid.ui.theme

import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.*

interface Theme {

    object Text {


        val titleText = TextStyle(
            color = Color.White,
            fontSize = 13f.sp
        )

        val contentText = TextStyle(
            color = Color.White,
            fontSize = 11f.sp
        )

    }

}

//文字样式
val Theme.textStyle: Theme.Text
    get() = Theme.Text


@Composable
fun GTheme(
    darkTheme: Boolean = isSystemInDarkTheme(),
    content: @Composable Theme.() -> Unit
) {


    content(object : Theme {

    })

//    val colors = if (darkTheme) {
//        DarkColorPalette
//    } else {
//        LightColorPalette
//    }
//
//    MaterialTheme(
//        colors = colors,
//        typography = Typography,
//        shapes = Shapes,
//        content = content
//    )
}